<template>
    <div class="vue-flow-modal">
        <vue-flow-canvas :data="props.data" :operable="false" style="height: 50vh"/>
<!--        <div class="submitted">-->
<!--            <n-input-number-->
<!--                v-model:value="new_score"-->
<!--            />-->
<!--            <n-button @click="emit('setScore',new_score)">修改分数</n-button>-->
<!--        </div>-->

    </div>

</template>

<script setup>

const emit = defineEmits(["setScore"])
const props = defineProps(["data"])
import workApi from "@/http/workApi";
import VueFlowCanvas from "@/components/VueFlowModel/Compositions/VueFlowCanvas.vue";


// 修改分数

const new_score = ref(null)
const setScore = ()=>{
    workApi.post("teacher/student_task_perform_picture_score",{
        student_id:props.taskInfo.student_id,
        training_id:props.taskInfo.training_id,
        task_id:props.taskInfo.task_id,
        new_score:new_score.value
    })
}
</script>

<style scoped lang="less">
.vue-flow-modal{
    padding: 20px;
    .submitted{
        display: flex;
        justify-content: flex-end
    }
}

</style>